@use "../aiReActChat/AIReActChat.module.scss" as AIReActChat;

%display-flex-center {
    display: flex;
    align-items: center;
}
%display-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tab-wrap {
    width: 100%;
    overflow: hidden;
}
.tab-content {
    flex: 1;
    overflow: hidden;
}
.ai-re-act-task-chat {
    @extend %display-flex-center;
    align-items: flex-start;
    flex: 1;
    overflow: hidden;
    border-right: 1px solid var(--Colors-Use-Neutral-Border);
    @include AIReActChat.content-side("left");
    .chat-content-wrapper {
        @extend %display-column-center;
        flex: 1;
        overflow: hidden;
        height: 100%;
        width: 100%;
        position: relative;
    }
    .header {
        @extend %display-flex-center;
        justify-content: space-between;
        gap: 4px;
        padding: 12px 12px 8px 12px;
        border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
        width: 100%;
        height: 45px;
        .title {
            @extend %display-flex-center;
            gap: 4px;
            color: var(--Colors-Use-Neutral-Text-1-Title);

            /* PingFang SC/T6/Medium */
            font-size: 14px;
            font-style: normal;
            font-weight: 500;
            line-height: 20px; /* 142.857% */
            letter-spacing: 0.1px;
            svg {
                width: 20px;
                height: 20px;
            }
        }
        .extra {
            @extend %display-flex-center;
            gap: 8px;
            flex-shrink: 0;
            .info-token {
                display: flex;
                align-items: center;
                gap: 4px;
                color: var(--Colors-Use-Neutral-Text-1-Title);
                font-size: 12px;
                font-weight: 400;
            }
            .token-tag {
                height: 16px;
                padding: 2px 6px;
                display: flex;
                align-items: center;
                gap: 4px;
                border-radius: 2px;
                svg {
                    width: 12px;
                    height: 12px;
                }
            }
            .upload-token {
                background: var(--Colors-Use-Error-Bg-Hover);
                color: var(--Colors-Use-Error-Primary);
                svg {
                    color: var(--Colors-Use-Error-Primary);
                }
            }
            .download-token {
                background: var(--Colors-Use-Neutral-Bg-Hover);
                color: var(--Colors-Use-Neutral-Text-3-Secondary);
                svg {
                    color: var(--Colors-Use-Neutral-Text-3-Secondary);
                }
            }

            .divider-style {
                width: 1px;
                height: 12px;
                border-left: 1px solid var(--Colors-Use-Neutral-Border);
            }
        }
    }
}
